www.gusucode.com > WSTMall PHP网店系统 v1.6.0PHP源码程序 > WSTMall PHP网店系统 v1.6.0/wstmall_v1.6.0_160506/wstmall_v1.6.0_160506/ThinkPHP/Library/Vendor/Boris/DumpInspector.php
<?php /* vim: set shiftwidth=2 expandtab softtabstop=2: */ namespace Boris; /** * Passes values through var_dump() to inspect them. */ class DumpInspector implements Inspector { public function inspect($variable) { ob_start(); var_dump($variable); return sprintf(" → %s", trim(ob_get_clean())); } }